package com.atguigu.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 订单远程调用类
 */
@Component
@FeignClient(value = "service-order")
public interface OrderClient {

    // 根据用户id与课程id来查询用户是否购买过该课程
    @GetMapping("/eduorder/order/isBuyCourse/{memberid}/{id}")
    public boolean isBuyCourse(@PathVariable("memberid") String  memberid,@PathVariable("id") String id);
    
}
